/**
 * Created by 二更 on 2017/4/24.
 */
    //显示倒数秒数
var t = 5;
function showTime(){
    document.getElementById('showtimes').innerHTML=t+'s';
    t -= 1;//t=t-1;
    if(t==0){
        location.href='index.html';
    }
    //每秒执行一次,showTime()
    setTimeout("showTime()",1000);
}
showTime();